package models;
import java.awt.Color;
import java.util.Locale;
import java.util.ResourceBundle;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.SwingConstants;

import utils.LabelConstants;
import utils.SosUtils;


public class LogoutModel {

	public void drawLogoutPanel(JTabbedPane tabbedPane, JPanel contentPane) {
		SosUtils utils = new SosUtils();
		ImageIcon quit = utils.createImageIcon("images/quit.png");
		Locale locale = new Locale("de", "DE");

		ResourceBundle labels = ResourceBundle.getBundle(LabelConstants.RESOURCES, locale);
		
		
		JPanel mainLogoutPanel = new JPanel();
		tabbedPane.addTab(labels.getString(LabelConstants.LOGOUT_TAB), quit, mainLogoutPanel, null);
		
		ImageIcon image1 = utils.createImageIcon("images/1half.jpg");
		JLabel lblNewLabel = new JLabel("", image1, JLabel.CENTER);
		lblNewLabel.setVerticalAlignment(SwingConstants.TOP);
		lblNewLabel.setBackground(Color.WHITE);
		lblNewLabel.setBounds(0, 0, 255, 745);
		contentPane.add(lblNewLabel);
		
		ImageIcon image2 = utils.createImageIcon("images/2half.jpg");
		JLabel lblNewLabel_1 = new JLabel("", image2, JLabel.CENTER);
		lblNewLabel_1.setVerticalAlignment(SwingConstants.TOP);
		lblNewLabel_1.setBackground(Color.WHITE);
		lblNewLabel_1.setBounds(1129, 0, 226, 745);
		contentPane.add(lblNewLabel_1);
	}
	
}
